import { StackNavigator,TabNavigator,TabBarBottom } from 'react-navigation';
import  MineScreen from  './containers/Mine/mine';
import  DynamicScreen from './containers/Dynamic/dynamic'
import  PatientScreen from './containers/Patient/patient'
import  CureScreen from './containers/Cure/cure'
import  ConsultationScreen from './containers/Consultation/consultation'




const RootTabNav = TabNavigator(
    {
        DynamicScreen: { screen: DynamicScreen },
        PatientScreen:{screen:PatientScreen},
        ConsultationScreen: { screen: ConsultationScreen },
        CureScreen:{screen:CureScreen},
        MineScreen: { screen: MineScreen },

    },
    {
        swipeEnabled: false,
        animationEnabled: false,
        lazyLoad: true,
        navigationOptions:{
            headerLeft:null,
            gesturesEnabled:false,
        },
        tabBarComponent:TabBarBottom,
        tabBarPosition:'bottom',
        tabBarOptions: {
            activeTintColor: 'red',
            inactiveTintColor: '#898989',
            labelStyle: {
                fontSize: 14,
            },
        },
    }
);


export default SimpleApp = StackNavigator({
    Home: { screen: RootTabNav },

});